home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Developer Toolbox 6.1
/
SGI Developer Toolbox 6.1 - Disc 4.iso
/
public
/
tarmail
/
tarmail
< prev
next >
Wrap
Text File
|
1994-08-01
|
522b
|
20 lines
TAR_OPTS='B' # change for your system as needed. 'B' is an SGIism for 'b20'.
subject='Mail from tarmail'
case "$1" in
"-s") subject="$2"; shift; shift;;
esac
case $# in
0|1) echo 'usage: tarmail [-s subject] person files...'
exit 1;;
esac
dest="$1";shift
# note that when we use $dest below in the "mail" command, there
# are no quotes, thus allowing tarmail to multiple destinations.
(echo '~:unset record' ; tar cv${TAR_OPTS}f - "$@" | compress | btoa ) \
| Mail -s "$subject" $dest
echo "file(s) sent to '$dest'"